Make sure to review your complex sentence structures and understand the position positioning of the main clause and the subordinate clause, also known as the dependent and independent clause.
The main clause there is " the TV comes on" and then the " if" clause, which is also called a subordinate clause, comes there, " if you press the button" .